package com.order.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.order.common.R;
import com.order.po.outbound_record;
import com.order.po.put_record;
import com.order.service.outbound_recordService;

@Controller
public class outbound_recordController {

	@Autowired
	  private outbound_recordService outbound_recordService;
	
	 @RequestMapping({"/get_outboundbyid"})
	   @ResponseBody
	   public R get_outboundbyid(String parameter)
	   {
		 R r = R.ok().put("data", this.outbound_recordService.get_outboundbyid(parameter));
	     return r;
	   }
	 
	 @RequestMapping({"/insert_outbound_record"})
	   @ResponseBody
	   public List insert_outbound_record(@RequestBody List<outbound_record> list)
	   {
		  this.outbound_recordService.insert_outbound_record(list);
		return list;
	   }
}
